//
//  EntrusUpDownViewModel.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/14.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "EntrusUpDownViewModel.h"

@implementation EntrusUpDownViewModel

-(instancetype)initWithViewToViewModel:(UIScrollView *)scrollView theSuperView:(UIView *)superView{
    if (self = [super init]) {
        scrollView.scrollEnabled = NO;
        scrollView.y = scrollView.y + kHeightProportion_In_iPhoneTriploid(10);
        scrollView.height = scrollView.height - kHeightProportion_In_iPhoneTriploid(10);
        [superView addSubview:scrollView];
        //
        GLGWImageView * okImageView = [[GLGWImageView alloc] initWithFrame:CGRectMake((KScreenWidth - kWidthProportion_In_iPhoneTriploid(60))/2, kHeightProportion_In_iPhoneTriploid(20), kWidthProportion_In_iPhoneTriploid(60), kHeightProportion_In_iPhoneTriploid(60)) inSuperView:scrollView];
        okImageView.backgroundColor = kRandomColor;
        //
        GLGWLabel * comitLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(okImageView, 20), KScreenWidth, kHeightProportion_In_iPhoneTriploid(22)) theFont:SYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:scrollView];
        comitLabel.textAlignment = NSTextAlignmentCenter;
        comitLabel.text = @"提交成功";
        //
        GLGWLabel * mintlabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(comitLabel, 10), KScreenWidth, kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:scrollView];
        mintlabel.text = @"5分钟内客服会回电给您请耐心等待";
        mintlabel.textAlignment = NSTextAlignmentCenter;
        
    }
    return self;
}
@end
